import { createApp } from 'vue'
// import './style.css'
import axios from 'axios'

import { createPinia } from 'pinia';
import '@/styles/index.scss'

import App from './App.vue'
import router from './router'
import {setupStore} from '@/store'
// import { useAuthStore } from "./AppStore"; 

axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL
// axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL
// axios.defaults.headers.common['Authorization'] = `Bearer ${token}`

let app = createApp(App)
setupStore(app)

app.use(router).mount('#app')

// 页面f5刷新时，重新获取token
// const authStore = useAuthStore();
// authStore.initialize();

